#!/usr/bin/env python

import json
from modules.auto_ssh import *

ip='172.18.127.153'
user = 'root'
passwd='TDXceTN+mUuu6Y='
port=22
pkey='/root/.ssh/id_rsa.pub'
pub_key='''ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCqLEqG6JogyyxpEzAofTBI0mnpyBjHg12Rp3qlJheAnbboEeiIaAxI96Ufbm6ivNnQbKufKOtnjxBqbi56jEFG/lZhss45Q2JQWyCavXYXKF59KVarHBFP/E6WFwEiHHSQZPfMXIOUgYMooQsBrUOwrh34TaTTIcwVNeRDta+zakk4ZZFRyrHrncZ+yWBF+j+gRGMdICMBRxG0QD+QO3rQ6S0eU+ZZ19vvv4ppS0cJZKAvL4qcv28wzGPCKMC0yJMOmAMFYaD8uAjSN8N5EahaU5cR9TtLy9fJdewz5W/CHqt8Wu46duD2/MCdbVLsXGuOwQyYKz2mbiPOssfz9KVX root@bj-dc-zk-001.tendcloud.com'''
autokey="echo '%s' >> /root/.ssh/authorized_keys;tail -3 /root/.ssh/authorized_keys" % pub_key

#Auto_ssh().execute_passwd(ip,port,user,passwd,autokey)
#Auto_ssh().execute_key(ip,user,wget_hadoop,pkey)

